package com.mediocre.entity;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.NoArgsConstructor;

//@ApiModel(value = "用户实体", description = "用户实体（仅用于测试）")
@ApiModel(description = "用户实体（仅用于测试）")
@Data
@NoArgsConstructor
public class User {

    @ApiModelProperty("ID")
    private Long id;
    @ApiModelProperty("姓名")
    private String name;
    @ApiModelProperty("年龄")
    private Integer age;

    public User(String name, Integer age){
        this.name = name;
        this.age = age;
    }
}
